package com.aoip.telemetry.telemetry.entity.equipment;

import com.aoip.telemetry.telemetry.entity.element.ElementAnalysisGroupConfigEntity;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.time.LocalDateTime;

/**
 * 测站与元素解析组关联关系配置表
 * @author chenbai
 * @version 1.0
 * @date 2021/7/12 3:14
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Builder
@TableName("rel_st_analysis_group_config")
@ApiModel(description = "测站与元素解析组关联关系配置表")
public class RelStAnalysisGroupConfigEntity {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty("数据id")
    private String id;

    @TableField(value = "st_cd")
    @ApiModelProperty("测站编码")
    private String stCd;

    @TableField(value = "analysis_group_id")
    @ApiModelProperty("解析元素组id")
    private String analysisGroupId;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("修改时间")
    private LocalDateTime modifyTime;

    @TableField(value = "del_flag", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("删除标识")
    @TableLogic
    private int delFlag;

    @TableField(value = "bz")
    @ApiModelProperty("备注信息")
    private String bz;

    @TableField(exist = false)
    @ApiModelProperty("接入测站信息实体")
    private StInfoConfigEntity stInfoConfigEntity;

    @TableField(exist = false)
    @ApiModelProperty("解析组信息实体")
    private ElementAnalysisGroupConfigEntity elementAnalysisGroupConfigEntity;
}
